package cn.com.myproject.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


@Controller
public class LoginController {

    @RequestMapping("/ssoLogin")
    public String ssoLogin(HttpServletRequest request, HttpServletResponse response) {
        return "redirect:http://oauth2.dh.com:3334/uaa/login";
    }
}
